package edu.gyc.homework.ioencode;

import java.io.Serializable;

public class Question implements Serializable {
    private int id;
    private String shiti;
    private Integer answer;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getShiti() {
        return shiti;
    }

    public void setShiti(String shiti) {
        this.shiti = shiti;
    }

    public Integer getAnswer() {
        return answer;
    }

    public void setAnswer(Integer answer) {
        this.answer = answer;
    }

    public Question(int id, String shiti, Integer answer) {
        this.id = id;
        this.shiti = shiti;
        this.answer = answer;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", shiti='" + shiti + '\'' +
                ", answer='" + answer + '\'' +
                '}';
    }
}
